// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.Nodes
{
	public sealed partial class NodeJvmInfo
	{
		[JsonInclude]
		[JsonPropertyName("bundled_jdk")]
		public bool BundledJdk { get; init; }

		[JsonInclude]
		[JsonPropertyName("gc_collectors")]
		public IReadOnlyCollection<string> GcCollectors { get; init; }

		[JsonInclude]
		[JsonPropertyName("input_arguments")]
		public IReadOnlyCollection<string> InputArguments { get; init; }

		[JsonInclude]
		[JsonPropertyName("mem")]
		public Elastic.Clients.Elasticsearch.Nodes.NodeInfoJvmMemory Mem { get; init; }

		[JsonInclude]
		[JsonPropertyName("memory_pools")]
		public IReadOnlyCollection<string> MemoryPools { get; init; }

		[JsonInclude]
		[JsonPropertyName("pid")]
		public int Pid { get; init; }

		[JsonInclude]
		[JsonPropertyName("start_time_in_millis")]
		public long StartTimeInMillis { get; init; }

		[JsonInclude]
		[JsonPropertyName("using_bundled_jdk")]
		public bool UsingBundledJdk { get; init; }

		[JsonInclude]
		[JsonPropertyName("using_compressed_ordinary_object_pointers")]
		public Union<bool?, string?>? UsingCompressedOrdinaryObjectPointers { get; init; }

		[JsonInclude]
		[JsonPropertyName("version")]
		public string Version { get; init; }

		[JsonInclude]
		[JsonPropertyName("vm_name")]
		public string VmName { get; init; }

		[JsonInclude]
		[JsonPropertyName("vm_vendor")]
		public string VmVendor { get; init; }

		[JsonInclude]
		[JsonPropertyName("vm_version")]
		public string VmVersion { get; init; }
	}
}